<!DOCTYPE html>

<html lang='zh-CN'>

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <div id="container"></div>

    <script src="./js/mustache.js"></script>
    <script>
        let templateStr = `
        {{#isShow}}
            <h1>你好</h1>
        {{/isShow}}`

        let data = {
            isShow: false,
        }

        let domStr = Mustache.render(templateStr, data)
        document.getElementById("container").innerHTML = domStr
    </script>
</body>

</html>